#include<stdio.h>
#include<conio.h>
#include<math.h>
struct diem
{
       int x;
       int y;
};
void nhap(diem &a)
{
     printf("\n nhap hoanh do");
     scanf("%d",&a.x);
     printf("\n nhap tung do");
     scanf("%d",&a.y);
     
}
void xuat(diem a)
{
     printf("\n diem vua nhap la:");
     printf("(%d,%d)",a.x,a.y);
}
void kc(diem a,diem b)
{
     float kcach;
     kcach=sqrt((a.x-b.x)*(a.x-b.x)+(a.x-b.x)*(a.x-b.x));
printf("\n kcach giua 2 diem la: %f",kcach);
}
int main()
{
    diem a;
    diem b;
    nhap(a);
    xuat(a);
    nhap(b);
    xuat(b);
    kc(a,b);
    getch();
}
